<div class="x-panel">
	<div class="x-toolbar">
		<div class="fl">
			<!-- <button type="button" class="x-btn" ng-click="addDepart()"><i class="fa fa-file-o"></i><span class="btn-text">新建部门</span></button> -->
			<span class="x-btn-group">
				<button type="button" class="x-btn" ng-click="add()"><i class="fa fa-user-circle-o"></i><span class="btn-text">新建角色</span></button>
				<button type="button" class="x-btn" ng-disabled="!hasSelected()" ng-click="edit()"><i class="fa fa-edit"></i><span class="btn-text">编辑角色</span></button>
				<button type="button" class="x-btn" ng-disabled="!hasSelectedRecords()" ng-click="remove()"><i class="fa fa-user-times"></i><span class="btn-text">移除角色</span></button>
			</span>
			<button type="button" class="x-btn" ng-click="import()"><i class="fa fa-user-plus"></i><span class="btn-text">导入角色</span></button>
		</div>
		<div class="fr x-query">
			<form name="form" novalidate="novalidate" ng-submit="query()">
				<input type="text" ng-model="q.name" class="x-ipt" placeholder="请输入角色名称" />
				<!-- <select name="" id=""><option value="">全部状态</option></select> -->
				<button type="submit" class="fa fa-search x-btn-query"></button>
			</form>
		</div>
	</div>
	<div class="x-grid-fixed" grid-view="gridOptions" grid-selection grid-paging></div>
</div>